package com.ch999.jiujidetect;

import android.content.Context;

/**
 * Created by zhulang on 2018/4/3.
 * 版本控制监听逻辑
 */

public class AppVersionsInfo {

    public Context mContext;

    public AppVersionsInfo(Context context) {
        mContext = context;
    }

    public void setListenter(AppVersionEvents appVersionEvents) {
        if (mContext == null) {
            throw new NullPointerException();
        }

        String appVersions = mContext.getResources().getString(R.string.bugly_app_chanel);

        switch (appVersions) {
            case "expressoa":
                //中邮
                appVersionEvents.ZhongYou_App();
                break;
            default:
                //回收
                appVersionEvents.OAA_pp();
                break;

        }

    }

    public interface AppVersionEvents {
         void OAA_pp();
         void ZhongYou_App();
    }


}
